package com.akkainaction.helloactor.circuitbreaker.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateUtils {

    /**
     * 获取当前时间
     * @return
     */
    public static String getCurrentDateStr() {
        DateTimeFormatter fmDateTime = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime now = LocalDateTime.now();
        return now.format(fmDateTime);
    }
}
